/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package bs.tesoreria.modelo;

import bs.global.modelo.ConceptoPorComprobante;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;

/**
 *
 * @author Claudio
 */
@Entity
@DiscriminatorValue("CJ")
public class ConceptoPorComprobanteTesoreria extends ConceptoPorComprobante{
        
    @JoinColumns({
    @JoinColumn(name = "MODCOM", referencedColumnName = "MODCOM", nullable = false, insertable = false, updatable = false),
    @JoinColumn(name = "CODCOM", referencedColumnName = "CODCOM", nullable = false, insertable = false, updatable = false)
    })
    @ManyToOne(fetch = FetchType.LAZY)
    ComprobanteTesoreria comprobante;
    
    
    @JoinColumns({
    @JoinColumn(name = "MODCPT", referencedColumnName = "MODULO", nullable = false, insertable = false, updatable = false),
    @JoinColumn(name = "TIPCPT", referencedColumnName = "TIPCPT", nullable = false, insertable = false, updatable = false),
    @JoinColumn(name = "CODCPT", referencedColumnName = "CODIGO", nullable = false, insertable = false, updatable = false),
    })
    @ManyToOne(fetch = FetchType.LAZY)
    private ConceptoTesoreria concepto;
    

    public ComprobanteTesoreria getComprobante() {
        return comprobante;
    }

    public void setComprobante(ComprobanteTesoreria comprobante) {
        this.comprobante = comprobante;
    }

    public ConceptoTesoreria getConcepto() {
        return concepto;
    }

    public void setConcepto(ConceptoTesoreria concepto) {
        this.concepto = concepto;
    }
    
    
    
}
